﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BL;
using DA;
using System.Data;
using System.Data.Entity;
using Entities;
using ERP.Membership;

namespace ERP
{
    public partial class OrdersList : BaseERPPage
    {
        public OrdersList()
            : base(Permission.OrdersView, Permission.OrdersWrite) // Enforce permissions
        {

        }

        protected void Page_Load(object sender, EventArgs e)
        {
            OrderManager orderManager = new OrderManager();

            Orderim.DataSourceU = orderManager.GetOrders(CurrentUser.UserId);
            Orderim.DataBind();
        }
    }
}